<%@ include file="../base/include.jsp"%>


<!-- 	Current user's profile -->
<div class="well">
	<ul class="nav nav-list">
		<li class="nav-header">${userName}</li>
		<c:choose>
			<c:when test="${my}">
				<li id="menuProfile"><a href="<c:url value="/profile/" />"><i
						class="icon-user"></i> Profile</a></li>
				<li id="menuSettings"><a
					href="<c:url value="/profile/settings/" />"><i class="icon-cog"></i>
						Settings</a></li>
				<li id="menuProperties"><a
					href="<c:url value="/profile/properties"/>"> <i
						class="icon-list-alt"></i> Custom Properties
				</a></li>
				<li id="menuStatistic"><a
					href="<c:url value="/stat/user/full" />"><i class="icon-signal"></i>
						My statistics </a></li>
				<li id="menuStatistic"><a
					href="<c:url value="/profile/calendar" />"><i
						class="icon-calendar"></i> Calendar</a></li>
				<li class="nav-header">Message Box</li>
				<li id="Inbox"><a href="<c:url value='/message/inbox'/>"><i
						class="icon-envelope"></i> InBox <c:if
							test="${messageUnreadCount > 0}">
							<strong>(${messageUnreadCount})</strong>
						</c:if> </a></li>
				<li id="Outbox"><a href="<c:url value='/message/outbox'/>"><i
						class="icon-th-list"></i> OutBox</a></li>
				<li id="Deleted"><a href="<c:url value='/message/deleted'/>"><i
						class="icon-trash"></i> Deleted</a></li>
			</c:when>
			<c:otherwise>
				<li><a href="<c:url value="/profile/${userId}" />"><i
						class="icon-user"></i> User's profile</a></li>
				<li><a href="<c:url value="/stat/user/full/${userId}" />"><i
						class="icon-signal"></i> User's statistics</a></li>
			</c:otherwise>
		</c:choose>
	</ul>

</div>
<div id="ChAvatarModal" class="modal hide fade in"
	style="display: none;">
	<div class="modal-header">
		<button class="close" data-dismiss="modal">x</button>
		<h3>Select your avatar</h3>
	</div>
	<form:form class="form-horizontal" method="post"
		enctype="multipart/form-data">
		<div class="modal-body">
			<input type="file" name="file" />
		</div>
		<div class="modal-header">
			<a href="#" class="btn" data-dismiss="modal">Close</a>
			<button class="btn" type="submit" value="upload"
				formaction="<c:url value='/profile/uploadavatar'/>">Upload</button>
		</div>

	</form:form>
</div>
